<?php

namespace Ad\Model;

use Common\Model\BaseModel;
use Common\Model\ModelException;

class AdModel extends BaseModel
{
    protected $_auto = [];

    protected $_validate = [];

    protected $_scope = [
        'valid' => [
            'where' => ['closed' => 0]
        ]
    ];
    
    public function getAdKey() {
        $result = D('AdSite')->getField('site_key',true);
        return $result;
    }

    protected function _after_find(&$record, $options)
    {
    }

    protected function _after_select(&$records, $options)
    {
    }

}
